package com.example.service;

import com.example.domain.Customer;
import com.example.mapper.CustomerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * Created by bethinner on 2017/1/4.
 */
@SpringBootApplication
@Component
public class CustomerService {

    @Autowired
    private CustomerMapper customerMapper;

    public Customer getCustomer(int id){
        return customerMapper.getCustomer(id);
    }
}
